<template>
	<view class="own-message">
		<view class="msg-item" v-for="(item,index) in messages" :key="index" >
			<view class="msg-item-one">
				<view class="msg-item-one-l">
					<image :src="item.iconURL" mode=""></image>
					<text>{{item.title}}</text>
				</view>
				<text>{{item.date}}</text>
			</view>
			<text class="msg-item-desc">{{item.desc}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				messages:[{
					iconURL:"/static/img/index1/u86.png",
					title:"诗悦",
					date:"2018-12-12 15::43",
					desc:"诗悦 IOS v1.0.1版本已上线，修复上传图片后点击完成无效的BUG。"
				},{
					iconURL:"/static/img/index1/u86.png",
					title:"诗悦",
					date:"2018-12-12 15::43",
					desc:"诗悦近期对搜索系统进行了优化，热门诗词在搜索结果中会更靠前。"
				}]
			}
		}
	}
</script>

<style lang="scss">
	.own-message {
		color: #333333;
		
		.msg-item {
			display: flex;
			flex-direction: column;
			margin: 20upx;
		}
		
		.msg-item image{
			width: 32px;
			height: 32px;
		}
		
		
		.msg-item-one {
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			align-items: center;
		}
		
		.msg-item-one-l {
			display: flex;
			flex-direction: row;
			justify-content:flex-start;
			align-items: center;
			
			text {
				margin-left: 10upx;
			}
		}
		
		.msg-item-desc{
			margin-top: 10px;
			font-size: 14px;
			text-align: left;
			line-height: 1.5;
		}
	}
	
</style>
